Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.eGameFeatures = undefined;
var $2PTConfig = require("PTConfig");
var cc__decorator = cc._decorator;
var ccp_ccclass = cc__decorator.ccclass;
var ccp_property = cc__decorator.property;
var a;
(function (e) {
  e[e.Bomb = 0] = "Bomb";
  e[e.AddTime = 1] = "AddTime";
  e[e.BlockCount = 2] = "BlockCount";
  e[e.Model1Info = 3] = "Model1Info";
  e[e.Model2Info = 4] = "Model2Info";
  e[e.Model3Info = 5] = "Model3Info";
  e[e.NewEnd = 6] = "NewEnd";
})(a = exports.eGameFeatures || (exports.eGameFeatures = {}));
var r = [{
  id: "tt84def2631be94d1f02",
  name: "消除天花板",
  showBomb: false,
  showAT: false,
  count: {
    level2: 140,
    level3: 130
  },
  model1: {
    size: 54,
    radius: 24,
    resilient: .2
  },
  model2: {
    size: 46,
    radius: 21,
    resilient: .2
  },
  model3: {
    size: 36,
    radius: 18,
    resilient: .2
  },
  NewEnd: false
}, {
  id: "ttb417c2aa2b207df302",
  name: "就不得消停",
  showBomb: true,
  showAT: true,
  count: {
    level2: 150,
    level3: 130
  },
  model1: {
    size: 54,
    radius: 24,
    resilient: .1
  },
  model2: {
    size: 46,
    radius: 20,
    resilient: .1
  },
  model3: {
    size: 36,
    radius: 18,
    resilient: .1
  },
  NewEnd: true
}, {
  //用这个做微信 self
  id: "wx504280e7f29e9878",
  name: "消除天花板",
  showBomb: true,
  showAT: true,
  count: {
    level2: 150,
    level3: 130
  },
  model1: {
    size: 50,
    radius: 24,
    resilient: 0
  },
  model2: {
    size: 42,
    radius: 20,
    resilient: 0
  },
  model3: {
    size: 36,
    radius: 18,
    resilient: 0
  },
  NewEnd: false
}, {
  id: "wxf92272a4904fc9c9",
  name: "这是找茬王",
  showBomb: false,
  showAT: false,
  count: {
    level2: 140,
    level3: 130
  },
  model1: {
    size: 50,
    radius: 24,
    resilient: .2
  },
  model2: {
    size: 42,
    radius: 21,
    resilient: .2
  },
  model3: {
    size: 36,
    radius: 18,
    resilient: .2
  },
  NewEnd: false
}];
exports.default = /* */function () {
  function _class2() {
    babel_classCallCheck(this, _class2);
  }
  return babel_createClass(_class2, null, [{
    key: "getGFByType",
    value: function getGFByType(e, t) {
      var n = null;
      switch (e) {
        case a.Bomb:
          n = !!cc.sys.isBrowser || r.find(function (e) {
            return e.id === $2PTConfig.default.GameAppId;
          }).showBomb;
          break;
        case a.AddTime:
          n = !!cc.sys.isBrowser || r.find(function (e) {
            return e.id === $2PTConfig.default.GameAppId;
          }).showAT;
          break;
        case a.BlockCount:
          n = r.find(function (e) {
            return e.id === $2PTConfig.default.GameAppId;
          }).count[t];
          break;
        case a.Model1Info:
          n = r.find(function (e) {
            return e.id === $2PTConfig.default.GameAppId;
          }).model1;
          break;
        case a.Model2Info:
          n = r.find(function (e) {
            return e.id === $2PTConfig.default.GameAppId;
          }).model2;
          break;
        case a.Model3Info:
          n = r.find(function (e) {
            return e.id === $2PTConfig.default.GameAppId;
          }).model3;
          break;
        case a.NewEnd:
          n = r.find(function (e) {
            return e.id === $2PTConfig.default.GameAppId;
          }).NewEnd;
      }
      return n;
    }
  }]);
}();